<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>订单收益</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="1900836248">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "1900836248";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("tborderinvoies.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建订单收益"
  			,"inport":"导入订单收益"
  			,"update":"修改订单收益"
  			,"detail":"订单收益详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#tborderinvoiesForm").form({
		"":function(){}
		,"tbOrderInvoies.tboiId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"tbOrderInvoies.tboiOrderNumber":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "订单编号最大长度为32个字符";
		}
		,"tbOrderInvoies.tboiSource":function(el){
		}
		,"tbOrderInvoies.tboiBrand":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^([0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的编号";				
		}
		,"tbOrderInvoies.tboiBuyer":function(el){
		}
		,"tbOrderInvoies.tboiTotal":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "订单总金额输入格式错误";
		}
		,"tbOrderInvoies.tboiMoney":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "实际支付金额输入格式错误";
		}
		,"tbOrderInvoies.tboiProduct":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "余额抵扣金额输入格式错误";
		}
		,"tbOrderInvoies.tboiCoupon":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "优惠卷抵扣金额输入格式错误";
		}
		,"tbOrderInvoies.tboiPtSy":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "平台收益输入格式错误";
		}
		,"tbOrderInvoies.tboiPtJj":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "普通间接收益输入格式错误";
		}
		,"tbOrderInvoies.tboiPtZj":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "普通直接收益输入格式错误";
		}
		,"tbOrderInvoies.tboiDlJj":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "代理间接收益输入格式错误";
		}
		,"tbOrderInvoies.tboiDlZj":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "代理直接收益输入格式错误";
		}
		,"tbOrderInvoies.tboiHhrSy":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "合伙人收益输入格式错误";
		}
		,"tbOrderInvoies.tboiPsSy":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "配送商收益输入格式错误";
		}
		,"tbOrderInvoies.tboiJxsSy":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "经销商收益输入格式错误";
		}
		,"tbOrderInvoies.tboiSySy":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "剩余收益输入格式错误";
		}
		,"tbOrderInvoies.tboiAddTime":function(el){
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="TbOrderInvoies" id="tborderinvoiesForm" name="tborderinvoiesForm" target="jsoniframe" action="tborderinvoies.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写订单收益相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("tboiId_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiId"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiId"))))}}
	{{lz.set("tboiId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiId}}
	<dl lz:if="{{tboiId_editable||tboiId_readonly}}" class="tboiId hidden " major  ref="tboiId">
		<dt>编　　号:</dt>
		<dd lz:if="{{tboiId_editable}}" input="hidden">
			<lz:block lz:if="{{tbOrderInvoies$tboiId}}">
				{{tbOrderInvoies$tboiId}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiId}}">
			<input type="hidden" value="{{lz.htm(tbOrderInvoies.tboiId)}}" name="tbOrderInvoies.tboiId" id="tboiId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiId">{{tbOrderInvoies.tboiId}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiId$||tbOrderInvoies.tboiId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiId}}
	{{lz.set("tboiOrderNumber_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiOrderNumber"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiOrderNumber"))))}}
	{{lz.set("tboiOrderNumber_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiOrderNumber}}
	<dl lz:if="{{tboiOrderNumber_editable||tboiOrderNumber_readonly}}" class="ribs tboiOrderNumber  " major  ref="tboiOrderNumber">
		<dt>订单编号:</dt>
		<dd lz:if="{{tboiOrderNumber_editable}}" input="text">
			<lz:block lz:if="{{tbOrderInvoies$tboiOrderNumber}}">
				{{tbOrderInvoies$tboiOrderNumber}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiOrderNumber}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="tbOrderInvoies.tboiOrderNumber" id="tboiOrderNumber"  value="{{lz.htm(tbOrderInvoies.tboiOrderNumber)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的订单编号</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiOrderNumber_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiOrderNumber">{{tbOrderInvoies.tboiOrderNumber}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiOrderNumber$||tbOrderInvoies.tboiOrderNumber)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiOrderNumber}}
	{{lz.set("tboiSource_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiSource"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiSource"))))}}
	{{lz.set("tboiSource_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiSource}}
	<dl lz:if="{{tboiSource_editable||tboiSource_readonly}}" class="ribs tboiSource  " major  ref="tboiSource">
		<dt>来　　源:</dt>
		<dd lz:if="{{tboiSource_editable}}" input="select">
			<lz:block lz:if="{{tbOrderInvoies$tboiSource}}">
				{{tbOrderInvoies$tboiSource}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiSource}}">
		 	<select class="narrow" id="tboiSource" name="tbOrderInvoies.tboiSource">
		 		<option value="">请选择</option>
				<option value="1" selected='{{tbOrderInvoies.tboiSource=="1"?"selected":""}}'>直接购买</option>
				<option value="2" selected='{{tbOrderInvoies.tboiSource=="2"?"selected":""}}'>余额充值</option>
				<option value="3" selected='{{tbOrderInvoies.tboiSource=="3"?"selected":""}}'>代理购买</option>
				<option value="4" selected='{{tbOrderInvoies.tboiSource=="4"?"selected":""}}'>合伙人购买</option>
		 	</select>
	 	 </lz:block>
	 	 
	 	 <em>请选择订单收益的来源</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiSource_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiSource">{{tbOrderInvoies.tboiSource}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiSource$||tbOrderInvoies.tboiSource)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiSource}}
	{{lz.set("tboiBrand_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiBrand"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiBrand"))))}}
	{{lz.set("tboiBrand_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiBrand}}
	<dl lz:if="{{tboiBrand_editable||tboiBrand_readonly}}" class="ribs tboiBrand  " major  ref="tboiBrand">
		<dt>所属品牌:</dt>
		<dd lz:if="{{tboiBrand_editable}}" input="number">
			<lz:block lz:if="{{tbOrderInvoies$tboiBrand}}">
				{{tbOrderInvoies$tboiBrand}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiBrand}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiBrand" id="tboiBrand"  value="{{lz.htm(tbOrderInvoies.tboiBrand)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的所属品牌</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiBrand_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiBrand">{{tbOrderInvoies.tboiBrand}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/business/merchant.details.html?key=tbOrderInvoies.tboiBrand}')">
			 {{lz.html(tbOrderInvoies.tboiBrand$||tbOrderInvoies.tboiBrand)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiBrand}}
	{{lz.set("tboiBuyer_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiBuyer"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiBuyer"))))}}
	{{lz.set("tboiBuyer_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiBuyer}}
	<dl lz:if="{{tboiBuyer_editable||tboiBuyer_readonly}}" class="ribs tboiBuyer  " major  ref="tboiBuyer">
		<dt>购 买 人:</dt>
		<dd lz:if="{{tboiBuyer_editable}}" input="query">
			<lz:block lz:if="{{tbOrderInvoies$tboiBuyer}}">
				{{tbOrderInvoies$tboiBuyer}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiBuyer}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/admin/users/member.query.do?value={param}" type="text" id="tboiBuyer" name="tbOrderInvoies.tboiBuyer" text="{{lz.html(tbOrderInvoies.tboiBuyer$||tbOrderInvoies.tboiBuyer)}}" value="{{lz.htm(tbOrderInvoies.tboiBuyer)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#tboiBuyer').val())==''){return;};window.href('/admin/users/member.detail.html?key='+$('#tboiBuyer').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiBuyer_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiBuyer">{{tbOrderInvoies.tboiBuyer}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/users/member.details.html?key=tbOrderInvoies.tboiBuyer}')">
			 {{lz.html(tbOrderInvoies.tboiBuyer$||tbOrderInvoies.tboiBuyer)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiBuyer}}
	{{lz.set("tboiTotal_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiTotal"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiTotal"))))}}
	{{lz.set("tboiTotal_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiTotal}}
	<dl lz:if="{{tboiTotal_editable||tboiTotal_readonly}}" class="ribs tboiTotal  " major  ref="tboiTotal">
		<dt>订单总金额:</dt>
		<dd lz:if="{{tboiTotal_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiTotal}}">
				{{tbOrderInvoies$tboiTotal}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiTotal}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiTotal" id="tboiTotal"  value="{{lz.htm(tbOrderInvoies.tboiTotal)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的订单总金额</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiTotal_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiTotal">{{tbOrderInvoies.tboiTotal}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiTotal$||tbOrderInvoies.tboiTotal)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiTotal}}
	{{lz.set("tboiMoney_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiMoney"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiMoney"))))}}
	{{lz.set("tboiMoney_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiMoney}}
	<dl lz:if="{{tboiMoney_editable||tboiMoney_readonly}}" class="ribs tboiMoney  " major  ref="tboiMoney">
		<dt>实际支付金额:</dt>
		<dd lz:if="{{tboiMoney_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiMoney}}">
				{{tbOrderInvoies$tboiMoney}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiMoney}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiMoney" id="tboiMoney"  value="{{lz.htm(tbOrderInvoies.tboiMoney)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的实际支付金额</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiMoney_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiMoney">{{tbOrderInvoies.tboiMoney}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiMoney$||tbOrderInvoies.tboiMoney)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiMoney}}
	{{lz.set("tboiProduct_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiProduct"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiProduct"))))}}
	{{lz.set("tboiProduct_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiProduct}}
	<dl lz:if="{{tboiProduct_editable||tboiProduct_readonly}}" class="ribs tboiProduct  " major  ref="tboiProduct">
		<dt>余额抵扣金额:</dt>
		<dd lz:if="{{tboiProduct_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiProduct}}">
				{{tbOrderInvoies$tboiProduct}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiProduct}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiProduct" id="tboiProduct"  value="{{lz.htm(tbOrderInvoies.tboiProduct)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的余额抵扣金额</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiProduct_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiProduct">{{tbOrderInvoies.tboiProduct}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiProduct$||tbOrderInvoies.tboiProduct)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiProduct}}
	{{lz.set("tboiCoupon_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiCoupon"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiCoupon"))))}}
	{{lz.set("tboiCoupon_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiCoupon}}
	<dl lz:if="{{tboiCoupon_editable||tboiCoupon_readonly}}" class="ribs tboiCoupon  " major  ref="tboiCoupon">
		<dt>优惠卷抵扣金额:</dt>
		<dd lz:if="{{tboiCoupon_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiCoupon}}">
				{{tbOrderInvoies$tboiCoupon}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiCoupon}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiCoupon" id="tboiCoupon"  value="{{lz.htm(tbOrderInvoies.tboiCoupon)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的优惠卷抵扣金额</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiCoupon_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiCoupon">{{tbOrderInvoies.tboiCoupon}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiCoupon$||tbOrderInvoies.tboiCoupon)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiCoupon}}
	{{lz.set("tboiPtSy_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiPtSy"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiPtSy"))))}}
	{{lz.set("tboiPtSy_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiPtSy}}
	<dl lz:if="{{tboiPtSy_editable||tboiPtSy_readonly}}" class="ribs tboiPtSy  " major  ref="tboiPtSy">
		<dt>平台收益:</dt>
		<dd lz:if="{{tboiPtSy_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiPtSy}}">
				{{tbOrderInvoies$tboiPtSy}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiPtSy}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiPtSy" id="tboiPtSy"  value="{{lz.htm(tbOrderInvoies.tboiPtSy)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的平台收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiPtSy_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiPtSy">{{tbOrderInvoies.tboiPtSy}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiPtSy$||tbOrderInvoies.tboiPtSy)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiPtSy}}
	{{lz.set("tboiPtJj_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiPtJj"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiPtJj"))))}}
	{{lz.set("tboiPtJj_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiPtJj}}
	<dl lz:if="{{tboiPtJj_editable||tboiPtJj_readonly}}" class="ribs tboiPtJj  " major  ref="tboiPtJj">
		<dt>普通间接收益:</dt>
		<dd lz:if="{{tboiPtJj_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiPtJj}}">
				{{tbOrderInvoies$tboiPtJj}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiPtJj}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiPtJj" id="tboiPtJj"  value="{{lz.htm(tbOrderInvoies.tboiPtJj)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的普通间接收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiPtJj_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiPtJj">{{tbOrderInvoies.tboiPtJj}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiPtJj$||tbOrderInvoies.tboiPtJj)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiPtJj}}
	{{lz.set("tboiPtZj_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiPtZj"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiPtZj"))))}}
	{{lz.set("tboiPtZj_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiPtZj}}
	<dl lz:if="{{tboiPtZj_editable||tboiPtZj_readonly}}" class="ribs tboiPtZj  " major  ref="tboiPtZj">
		<dt>普通直接收益:</dt>
		<dd lz:if="{{tboiPtZj_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiPtZj}}">
				{{tbOrderInvoies$tboiPtZj}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiPtZj}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiPtZj" id="tboiPtZj"  value="{{lz.htm(tbOrderInvoies.tboiPtZj)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的普通直接收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiPtZj_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiPtZj">{{tbOrderInvoies.tboiPtZj}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiPtZj$||tbOrderInvoies.tboiPtZj)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiPtZj}}
	{{lz.set("tboiDlJj_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiDlJj"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiDlJj"))))}}
	{{lz.set("tboiDlJj_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiDlJj}}
	<dl lz:if="{{tboiDlJj_editable||tboiDlJj_readonly}}" class="ribs tboiDlJj  " major  ref="tboiDlJj">
		<dt>代理间接收益:</dt>
		<dd lz:if="{{tboiDlJj_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiDlJj}}">
				{{tbOrderInvoies$tboiDlJj}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiDlJj}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiDlJj" id="tboiDlJj"  value="{{lz.htm(tbOrderInvoies.tboiDlJj)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的代理间接收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiDlJj_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiDlJj">{{tbOrderInvoies.tboiDlJj}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiDlJj$||tbOrderInvoies.tboiDlJj)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiDlJj}}
	{{lz.set("tboiDlZj_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiDlZj"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiDlZj"))))}}
	{{lz.set("tboiDlZj_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiDlZj}}
	<dl lz:if="{{tboiDlZj_editable||tboiDlZj_readonly}}" class="ribs tboiDlZj  " major  ref="tboiDlZj">
		<dt>代理直接收益:</dt>
		<dd lz:if="{{tboiDlZj_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiDlZj}}">
				{{tbOrderInvoies$tboiDlZj}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiDlZj}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiDlZj" id="tboiDlZj"  value="{{lz.htm(tbOrderInvoies.tboiDlZj)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的代理直接收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiDlZj_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiDlZj">{{tbOrderInvoies.tboiDlZj}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiDlZj$||tbOrderInvoies.tboiDlZj)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiDlZj}}
	{{lz.set("tboiHhrSy_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiHhrSy"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiHhrSy"))))}}
	{{lz.set("tboiHhrSy_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiHhrSy}}
	<dl lz:if="{{tboiHhrSy_editable||tboiHhrSy_readonly}}" class="ribs tboiHhrSy  " major  ref="tboiHhrSy">
		<dt>合伙人收益:</dt>
		<dd lz:if="{{tboiHhrSy_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiHhrSy}}">
				{{tbOrderInvoies$tboiHhrSy}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiHhrSy}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiHhrSy" id="tboiHhrSy"  value="{{lz.htm(tbOrderInvoies.tboiHhrSy)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的合伙人收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiHhrSy_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiHhrSy">{{tbOrderInvoies.tboiHhrSy}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiHhrSy$||tbOrderInvoies.tboiHhrSy)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiHhrSy}}
	{{lz.set("tboiPsSy_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiPsSy"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiPsSy"))))}}
	{{lz.set("tboiPsSy_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiPsSy}}
	<dl lz:if="{{tboiPsSy_editable||tboiPsSy_readonly}}" class="ribs tboiPsSy  " major  ref="tboiPsSy">
		<dt>配送商收益:</dt>
		<dd lz:if="{{tboiPsSy_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiPsSy}}">
				{{tbOrderInvoies$tboiPsSy}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiPsSy}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiPsSy" id="tboiPsSy"  value="{{lz.htm(tbOrderInvoies.tboiPsSy)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的配送商收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiPsSy_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiPsSy">{{tbOrderInvoies.tboiPsSy}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiPsSy$||tbOrderInvoies.tboiPsSy)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiPsSy}}
	{{lz.set("tboiJxsSy_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiJxsSy"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiJxsSy"))))}}
	{{lz.set("tboiJxsSy_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiJxsSy}}
	<dl lz:if="{{tboiJxsSy_editable||tboiJxsSy_readonly}}" class="ribs tboiJxsSy  " major  ref="tboiJxsSy">
		<dt>经销商收益:</dt>
		<dd lz:if="{{tboiJxsSy_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiJxsSy}}">
				{{tbOrderInvoies$tboiJxsSy}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiJxsSy}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiJxsSy" id="tboiJxsSy"  value="{{lz.htm(tbOrderInvoies.tboiJxsSy)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的经销商收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiJxsSy_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiJxsSy">{{tbOrderInvoies.tboiJxsSy}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiJxsSy$||tbOrderInvoies.tboiJxsSy)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiJxsSy}}
	{{lz.set("tboiSySy_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiSySy"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"tboiSySy"))))}}
	{{lz.set("tboiSySy_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$tboiSySy}}
	<dl lz:if="{{tboiSySy_editable||tboiSySy_readonly}}" class="ribs tboiSySy  " major  ref="tboiSySy">
		<dt>剩余收益:</dt>
		<dd lz:if="{{tboiSySy_editable}}" input="menoy">
			<lz:block lz:if="{{tbOrderInvoies$tboiSySy}}">
				{{tbOrderInvoies$tboiSySy}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiSySy}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="tbOrderInvoies.tboiSySy" id="tboiSySy"  value="{{lz.htm(tbOrderInvoies.tboiSySy)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入订单收益的剩余收益</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiSySy_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiSySy">{{tbOrderInvoies.tboiSySy}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiSySy$||tbOrderInvoies.tboiSySy)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiSySy}}
	{{lz.set("tboiAddTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"tboiAddTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"tboiAddTime"))))}}
	{{lz.set("tboiAddTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$tboiAddTime}}
	<dl lz:if="{{tboiAddTime_editable||tboiAddTime_readonly}}" class="tboiAddTime  " major  ref="tboiAddTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{tboiAddTime_editable}}" input="datetime">
			<lz:block lz:if="{{tbOrderInvoies$tboiAddTime}}">
				{{tbOrderInvoies$tboiAddTime}}
			</lz:block>
			<lz:block lz:if="{{!tbOrderInvoies$tboiAddTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="tbOrderInvoies.tboiAddTime" id="tboiAddTime"  value="{{tbOrderInvoies.tboiAddTime$}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请选择订单收益的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{tboiAddTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="tboiAddTime">{{tbOrderInvoies.tboiAddTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(tbOrderInvoies.tboiAddTime$||tbOrderInvoies.tboiAddTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$tboiAddTime}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{tbOrderInvoies.tboiId}}" name="tbOrderInvoies.tboiId" id="tboiId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/goods/tborderinvoies.edit.html?edittype=update&id={{tbOrderInvoies.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button lz:if="{{canDel}}" type="button" class="button" onclick="deleteTborderinvoies('{{tbOrderInvoies.id}}','{{tbOrderInvoies.tboiId}}')">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					删除&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/goods/tborderinvoies.edit.html",document.title,"/admin//images/icons/1086174465.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/goods/tborderinvoies.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


	/**
	* 删除订单收益
	**/
	function deleteTborderinvoies(id,flag)
	{
		var dialog=top.$.dialog({
				html:"<span style='white-space:nowrap;'>确定要删除当前数据吗？</span>",
				title:"删除订单收益",
				modal: true,			
				onOk:function(){
					dialog.closeDialog();
					var url = "/admin/goods/tborderinvoies.delete.do";
					var params = {id:id};
					var protocol = $.getAjax(url,params);
					if(protocol.message){
						top.$.toast(protocol.message);
					}
					if(protocol.success){
						caller.location.href=caller.location.href;		
					}
				}
		 });	
	}
</script>
</html>